
// BBSimple.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h"		// main symbols


// CBBSimpleApp:
// See BBSimple.cpp for the implementation of this class
//

class CBBSimpleApp : public CWinAppEx
{
public:
	CBBSimpleApp();

// Overrides
	public:
	virtual BOOL InitInstance();
	BOOL InitW2Sock(WSADATA * lpwsaData);

public:

	int m_nDemo;

	DWORD dwAudioFormat;
	DWORD dwAudioFrequency;
	DWORD dwAudioBitPerSample;

	//path
	CString m_strModulePath;		//folder path which BBSimple.exe belongs to
	CString m_strOptionPath;		//Option.ini path
	CStringArray m_sarrOptionPath;

	CString m_strImageRoot;

	void InitOptionPath();
	CString GetOptionPath() { return m_strOptionPath; }
	CString GetOptionPath(int nIndex);
	int GetOptionPathCount() { return m_sarrOptionPath.GetSize(); };

	void InitOption();

	CString GetLogoPath();

// Implementation

	DECLARE_MESSAGE_MAP()
};

extern CBBSimpleApp theApp;